$(function(){
    var str = location.search;
    var id = +str.slice(1).split("=")[1];

    $.ajax({
        url: "http://127.0.0.1:9090/api/getmoneyctrlproduct",
        data: { productid: id},
        dataType: "json",
        success: function(result){
            console.log(result);
            console.log(result.result[0].productComment);
            $(".cu-content").html(template("temp-content",result));
        }
    });

});